import { http } from "../utils/request"
import { Loginform } from "../model/User"

interface tokenData {
  data: string,
  msg:string,
  code:number
}

export const login = (data: Loginform): Promise<tokenData> => {
  return http.post<tokenData>("/login/account", data)
}